public class producerImple implements Producer{
    private final Broker broker;
    producerImple(Broker broker) {
        this.broker = broker;
    }
    @Override
    public void publish(Message message, long expirationTime) {
        broker.publish(message,expirationTime);
    }
    //如果不指定topic的过期时间，就默认为10s
    @Override
    public void publish(Message message) {
        broker.publish(message,10);
    }


}
